a = 10
print(a)

print("hello python")

# 这个一个注解
list = ["a", "b", "c", "你好 python"]
print(list)

# python可以一行显示多条语句,默认自动换行
print(list)
print(a)

"""
这是多行注释
这是多行注释
这是多行注释 
"""

# python 用缩进来写代码块，所有的代码块必须使用相同的缩进
bb = 20
if bb == 10:
    print("the bb=10")
    print(list)
else:
    print("the bb=20")
    print("the bb=20")

# 多行语句
item_one = "a"
item_two = "b"
item_three = "c"

# 字符串拼接
total = item_one + item_two + item_three
print("字符串拼接：" + total)

# 字符串拼接
total_2 = item_one + \
          item_two + \
          item_three
print("字符串拼接：" + total_2)

days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
print(days)

sentence = "这是一个句子"  # 注解也可以加在同一行
print(sentence)

x = "你好，python"
y = "我即将开启python之旅"
# 默认输出是换行的，如果不要换行，可以在变量末尾加,
print(x)
print(y)
print("-----------")
print(x,y)

import sys

sys.stdout.write(x + y)
